<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>值cover与值contain</title>
<style type="text/css">
div {
	margin:10px;
	padding:50px;
	border:1px solid #000;
	height:150px;
	width:400px;
	background-repeat:no-repeat;
	background-image:url(../images/WestLake.jpg);
	background-size:contain;	
}
</style>
<body>
<div></div>
</body>
</html>
